package bandidong.dao;

import bandidong.model.Mobile;
import bandidong.transfermodel.SearchMobileTransferModel;
import java.util.Date;
import java.util.List;

public interface MobileDAO {
    public List<Mobile> getAllMobiles();
    public Mobile getMobileById(int id);
    public String addMobile(Mobile mobile);
    public String updateMobile(Mobile mobile);
    public String deleteMobile(Mobile mobile);
    public List<Mobile> getMobilesCriteria(SearchMobileTransferModel model, int page, int pageSize);
    public List<Mobile> getMobilesCriteria(SearchMobileTransferModel model);
    public boolean checkExists(String mobileName);
    public boolean checkExists(String mobileName, int mobileId);
    public List<Mobile> getHotMobile(int maxSize);
    public List<Mobile> getHotMobile(int page, int pageSize);
    public List<Mobile> getPopularMobile(int maxSize, Date orderDate);
    public List<Mobile> getPopularMobile(int page, int pageSize, Date orderDate);
}
